package com.dinner.util;

import com.dinner.model.Order;
import com.dinner.model.OrderDao;

public class HandlerOrderCommand implements Command {
	
	public HandlerOrderCommand(String sellerID, int orderID, OrderDao orderDao) {
		this.sellerID = sellerID;
		this.orderID = orderID;
		this.orderDao = orderDao;
	}

	@Override public void execute() {
		orderDao.handleOrder(sellerID, orderID, Order.CONSUMER_ORDERED,
				Order.ORDER_HANDLED);
	}

	private String sellerID = null;
	private int orderID = -1;
	private OrderDao orderDao = null;
}
